package com.wing.cabinet.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.cabinet.model.entity.StartSysSettingAdvert;
import com.wing.setting.model.entity.SysSettingAdvert;
import com.wing.setting.model.request.SysSettingAdvertForm;
import com.wing.cabinet.model.response.SysSettingAdvertVO;

import java.util.List;
import java.util.Map;

/**
 * 刀具柜系统设置_广告设置-Service
 *
 * @author
 */
public interface StartSysSettingAdvertService extends IService<StartSysSettingAdvert> {

    /**
     * 添加
     *
     * @param sysSettingAdvertForm
     * @return
     */
    int add(SysSettingAdvertForm sysSettingAdvertForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<SysSettingAdvertVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<SysSettingAdvertVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    SysSettingAdvertVO get4appById(Long id);

    boolean upIsDelete(Long id, Integer isDeleted);
}
